package com.xmtlxx.web.controller.system;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.xmtlxx.common.core.controller.BaseController;
import com.xmtlxx.common.core.domain.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author RonyChan
 * @since 2022/5/13 10:01
 */
@Validated
@Api(value = "首页数据控制器", tags = {"首页数据"})
@RequiredArgsConstructor
@RestController
@RequestMapping("/system/index")
public class IndexDataController  extends BaseController {


    @ApiOperation("库存统计")
    @SaCheckPermission("index:data:stocks")
    @GetMapping("/data/stocks")
    public R<Map<String,Object>> dataStocks(){
        return R.ok();
    }

    @ApiOperation("财物统计")
    @SaCheckPermission("index:data:properties")
    @GetMapping("/data/properties")
    public R<Map<String,Object>> dataProperties(){
        return R.ok();
    }

    @ApiOperation("入库统计")
    @SaCheckPermission("index:data:warehouses")
    @GetMapping("/data/warehouses")
    public R<Map<String,Object>> dataWarehouses(){
        return R.ok();
    }

    @ApiOperation("出库统计")
    @SaCheckPermission("index:data:exwarehouses")
    @GetMapping("/data/exwarehouses")
    public R<Map<String,Object>> dataExwarehouses(){
        return R.ok();
    }

    @ApiOperation("运力情况")
    @SaCheckPermission("index:data:tmsInfo")
    @GetMapping("/data/tmsInfo")
    public R<Map<String,Object>> dataTmsInfo(){
        return R.ok();
    }

    @ApiOperation("订单统计")
    @SaCheckPermission("index:data:orders")
    @GetMapping("/data/orders")
    public R<Map<String,Object>> dataOrders(){
        return R.ok();
    }

    @ApiOperation("运单统计")
    @SaCheckPermission("index:data:waybills")
    @GetMapping("/data/waybills")
    public R<Map<String,Object>> dataWaybills(){
        return R.ok();
    }

}
